<div class="title">
  <div class='content'>
    编辑-安装派工单
  </div>
  <div class='tools'>
    <%= link_to '返回',
          @install,
          :remote => true,
          :method => :get
     %>
  </div>
</div>
<%= form_for @install,
     :remote => true,
     :method => :put do |f|
 %>
<div class='info'>
  <table>
    <tr>
      <th>
        派工单号：
      </th>
      <td>
        <%= f.text_field :install_no %>
      </td>
    </tr>
    <tr>
      <th>
        安装日期：
      </th>
      <td>
        <%= f.date_select :installed_on %>
      </td>
    </tr>
    <tr>
      <th>
        安装师傅：
      </th>
      <td>
        <%= f.select :installer_id, Employee.installers.collect { |installer| ["#{installer.full_name}-#{installer.mobile}",installer.id] } %>
      </td>
    </tr>
    <tr>
      <th>
        应收金额：
      </th>
      <td>
        <%= f.text_field :should_be_payed_price %>
      </td>
    </tr>
    <tr>
      <th>
        实收金额：
      </th>
      <td>
        <%= f.text_field :payed_price %>
      </td>
    </tr>
    <tr>
      <th>备注：</th>
      <td colspan='3'>
        <%= f.text_area :remark, :rows => 6 %>
      </td>
    </tr>
    <tr>
      <td colspan='4' class='b'>
        <%= f.submit '保存', :class => :bb %>
        <%= link_to '返回',
               @install,
              :remote => true,
              :method => :get,
              :class => :bb
         %>
      </td>
    </tr>
  </table>
</div>
<% end %>